# 下拉框处理
import time

from selenium import webdriver
import os
driver = webdriver.Chrome()
file = "file:///" + os.path.abspath("e:\比特课件\selenium2html\drop_down.html")
driver.get(file)

driver.maximize_window()
#driver.find_element_by_xpath("//*[@id='ShippingMethod']/option[3]").click()
driver.find_element_by_css_selector("#ShippingMethod > option:nth-child(3)").click()
time.sleep(3)
driver.quit()


